
const { success,error } = require('../utils/response')
const validator = async (ctx,next)=>{
  try{
    ctx.verifyParams({
      userName:{ type:'string',required:true }
    })
  } catch(err) {
    return error(ctx,null,err)
  }
  await next()
}


module.exports = {
  validator
}